package com.zkw.mapper;

import com.zkw.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    //增加一本书
    public int addBook(Books books);

    //删除一本书
    public int delBookById(@Param("bookId") int id);

    //更新一本书
    public int updateBookById(Books books);

    //查询一本书
    public Books  queryBookById(@Param("bookId") int id);

    //查询所有的书
    public List<Books> queryAllBook();

    //查询书籍
    public List<Books> queryNameBook(@Param("bookName") String name);
}
